import request from '@/api/request'
// 使用get请求获取全国地址的相关信息
export const req_area = ()=>request({
    method:'get',
    url:'/area',
    arg:{},
    headerType:''
})

// 提交学生信息的接口

export const req_stu_info = (arg) => request({
    method:'post',
    url:'/student_info',
    arg,
    headerType:"form",
})

// 根据学号查询某个学生的成绩

export const req_stu_info_personal = (stu_id)=> request({method:'get',url:'/search_info_item',arg:{stu_id,},headerType:''})

// 请求所有学生信息
export const req_all_stu_info = ()=>request({
    method:'get',
    url:'/search_info',
    arg:{},
    headerType:''
})

// 请求所有不带头像的学生信息
export const req_stu_info_nohead = ()=> request({
    method:'get',
    url:'/search_info_not',
    arg:{},
    headerType:'',
})

// 学生入学成绩录入
export const req_entry_exam = (arg)=> request({
    method:'post',
    url:'/entry_exam',
    arg,
    headerType:'form',
})
//  学生期中成绩录入
export const req_mid_exam = (arg)=> request({
    method:'post',
    url:'/mid_exam',
    arg,
    headerType:'form',
})
//  学生期末成绩录入
export const req_end_exam = (arg)=> request({
    method:'post',
    url:'/end_exam',
    arg,
    headerType:'form',
})

// 学生入学成绩查询
export const req_search_entry = (stu_id)=> request({
    method:'get',
    url:`/search_entry/${stu_id}`,
    arg:{stu_id},
    headerType:'',
})
//  学生期中成绩查询
export const req_search_mid = (stu_id)=> request({
    method:'get',
    url:'/search_mid',
    arg:{stu_id,},
    headerType:'',
})
//  学生期末成绩查询
export const req_search_end = (stu_id)=> request({
    method:'get',
    url:'/search_end',
    arg:{stu_id,},
    headerType:'',
})
